package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Member;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface MemberMapper {
    int insert(Member entity);
    //分页查询
    int queryForCount(QueryObject qo);
    List<Member> queryForList(QueryObject qo);
    //修改
    int update(Member entity);
    //修改状态
    int updateState(Member entity);
    //修改分组
    int updateGroup(Member entity);
    //修改标签
    int updateLabel(Member entity);

    int updateBalance(@Param("id") Long id, @Param("money") BigDecimal endMoney);

    List<Member> querymemberlist();


    void updateIntegral(@Param("id") Long id, @Param("number") BigDecimal number);

    //根据id查询会员部分信息
    Member get(Long id);

    void memberBalanceUpdate(@Param("id") Long id, @Param("salePrice") BigDecimal salePrice);
}